package Week3.num.week3Test1.opp03;

public class Student {
    //学号
    private String stuId;
    //学生姓名
    private String name;
    //学生性别
    private String gender;
    //学生年龄
    private int age;
    //期中成绩
    private double midTermExam;
    //期末成绩
    private double finalExam;

    /**
     * 空参构造
     */
    public Student() {
    }

    /**
     *全参构造
     */
    public Student(String stuId, String name,String gender, int age, double midTermExam, double finalExam) {
        this.stuId = stuId;
        this.name = name;
        this.gender=gender;
        this.age = age;
        this.midTermExam = midTermExam;
        this.finalExam = finalExam;
    }

    /**
     * get和set方法
     */
    public String getStuId() {
        return stuId;
    }

    public void setStuId(String stuId) {
        this.stuId = stuId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getMidTermExam() {
        return midTermExam;
    }

    public void setMidTermExam(double midTermExam) {
        this.midTermExam = midTermExam;
    }

    public double getFinalExam() {
        return finalExam;
    }

    public void setFinalExam(double finalExam) {
        this.finalExam = finalExam;
    }

    /**
     * 获取学生综合成绩的方法
     * 需要根据学生所在系进行重写
     * @return 综合成绩
     */
    public double score() {
        return 0.0;
    }
}
